<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<include file="Public:base" />
<script type="text/javascript">
$(document).ready(function() {
	
	
	
	$("[id^=delartcate]").on("click", function () {
		var idval = $(this).attr("id");
		 bootbox.confirm("确认删除", function(result) {
         if(result){
      	   var id = idval.split("_")[1];
      	 	$.post("__URL__/del/id/"+id, function (result) {
	       		if(result=="del"){
                   $("#artcatetr_"+id).hide();
	       		}else {
	       			bootbox.alert("删除失败", function() {
                       //console.log("Alert Callback");
                });
	       		}
	       		
		    }); 	
  	       	
         }
       });
   });
	
});
</script>
</head>
<body>
<include file="Public:header" />

<div class="home-index">
  <div class="container">
    <div class="row">
       <ol class="breadcrumb">
        <li>首页</li>
        <li>报名管理</li>
        <li class="active">{$art.title}---<b>{$art.ended_at|date="Y-m-d",###}</b>报名截止</li>
      </ol>
      <div class="search-box">
        <form class="form-inline" role="form" action="__URL__/index" method="get">
          <div class="form-group">
            <label class="sr-only" >关键词</label>
            <input type="text" class="form-control input-large" name="keyword" value="{$keyword}"  placeholder="姓名、手机号...">
          </div>
          <input type="hidden" name='id' value='{$art.id}'>
          
          <button type="submit" class="btn btn-primary">搜索</button>
        </form>
      </div>
      <table class="table table-striped">
        <thead>
          <tr>
            <th>报名编号</th>
            <th>姓名</th>
            <th>手机号</th>
            <th>人数</th>
            <th>性别</th>
            <th>职业</th>
            <th>报名时间</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody>
        <volist name='data' id='vo'>
          <tr id="artcatetr_{$vo.id}">
            <td>{$vo.id}</td>
            <td>{$vo.truename}</td>
            <td>{$vo.phone}</td>
            <th>{$vo.num}</th>
            <td>
            	<if condition=" $vo.sex ">
		 		女
		 		<else />
				男
				 </if>
            </td>
            <td>{$vo.job}</td>
            <td>{$vo.created_at|date="Y-m-d",###}</td>
            <td class="opts">
              <a id="delartcate_{$vo.id}" href="javascript:;" class="icon-trash"></a>
            </td>
          </tr>
          </volist>
         
        </tbody>
      </table>
      {$page}
    </div>
  </div>
</div>


</body>
</html>